﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for CCImage
/// </summary>
/// 
namespace CE.CreditCard
{
    public class CCImage
    {
        //Cards Info field name
        private Int64 _ccid;
        private Int32 _ccclass;
        private string _creditcardimage;
        //Common field name
        private bool _status;
        private DateTime _createddate;
        private DateTime _modifieddate;

        public CCImage()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        public Int64 CCId
        {
            get { return _ccid; }
            set { _ccid = value; }
        }

        public Int32 CardClass
        {
            get { return _ccclass; }
            set { _ccclass = value; }
        }

        public string CreditcardImage
        {
            get { return _creditcardimage; }
            set { _creditcardimage = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public DateTime CreatedDate
        {
            get { return _createddate; }
            set { _createddate = value; }
        }

        public DateTime ModifiedDate
        {
            get { return _modifieddate; }
            set { _modifieddate = value; }
        }

        public void ClearFields()
        {
            //Cards Info field name
            _ccid = 0;
            _ccclass = -1;
            _creditcardimage = "";
            //Common field name
            _status = true;
            _createddate = new DateTime();
            _modifieddate = new DateTime();
            _createddate = CE.Global.General.GetUTCDateTime();
            _modifieddate = CE.Global.General.GetUTCDateTime();
        }

    }
}
